package io.adrainty.bolee.framework.commons.constants;

/**
 * @author AdRainty
 * @version V1.0.0
 * @since 2025/8/3 下午11:31
 */
public class GlobalOauth2Constants {

    private GlobalOauth2Constants() {
    }

    /**
     * 用户令牌
     */
    public static final String USER_TOKEN = "user-token";

    public static final String CACHE_PREFIX = "oauth:";

    public static final String ACCESS_TOKEN_CACHE = CACHE_PREFIX + "access-token:";

    public static final String USER_TOKEN_CACHE = CACHE_PREFIX + "user-token:";

    public static final String USER_TOKEN_BIND_CACHE = CACHE_PREFIX + "user-token-bind:";

    public static final String REFRESH_TOKEN_CACHE = CACHE_PREFIX + "refresh-token:";

    public static final String AUTHORITIES_KEY = "authorities";

    //本人
    public static final String DATA_SCOPE_0 = "0";

    //自定义
    public static final String DATA_SCOPE_1 = "1";

}
